home *** CD-ROM | disk | FTP | other *** search
- on lookForPeak
- global stamp, mucus
- set PossiblePeak to 0
- set last to count(stamp) - 1
- repeat with i = 1 to last
- if (getAt(mucus, i) < 7) and (getAt(mucus, i) > 1) then
- if not ((getAt(mucus, i + 1) < 7) and (getAt(mucus, i + 1) > 1)) then
- if getOne(stamp, 10) <> 0 then
- setAt(stamp, getOne(stamp, 10), 3)
- end if
- set PossiblePeak to i
- end if
- end if
- end repeat
- return PossiblePeak
- end
-
- on ToNowMax F, L, CheckList, max
- if F < 1 then
- set F to 1
- end if
- if L > count(CheckList) then
- set L to count(CheckList)
- end if
- repeat with i = F to L
- if getAt(CheckList, i) > max then
- return 0
- end if
- end repeat
- return 1
- end
-